export function clientModel() {
  const ua = navigator.userAgent;
  const match = ua.match(/\(([^)]+)\)/);
  if (match) {
    const parts = match[1].split(";").map(p => p.trim());
    // 查找包含明显品牌的部分
    const model = parts.find(p => /(mi|redmi|huawei|honor|oppo|vivo|oneplus|samsung|iphone|ipad)/i.test(p));
    return model || "Unknown";
  }
  return "Unknown";
}
